﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml;
using System.Xml.Serialization;

namespace LeadVinaglue.Models
{
    [XmlRoot("NavigationConfig")]
    public class NavigationConfig
    {
        //[XmlElement("NavigationItems")]
        public List<NavigationItems> NavigationItems { get; set; }
    }
        
    public class NavigationItems
    {
        [XmlAttribute("ItemName")]
        public string ItemName { get; set; }

        [XmlAttribute("ItemLink")]
        public string ItemLink { get; set; }

        [XmlAttribute("IsTop")]
        public bool IsTop { get; set; }

        //[XmlElement("SubItems")]
        public List<NavigationItem> SubItems { get; set; }

    }

    public class NavigationItem
    {
        [XmlAttribute("ItemName")]
        public string ItemName { get; set; }

        [XmlAttribute("ItemLink")]
        public string ItemLink { get; set; }
    }
}
